home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
addr.rpl
< prev
next >
Wrap
Text File
|
1990-10-20
|
1KB
|
36 lines
%%HP:T(3);
@ By Rick Grevelle
@ ADDR
@
@ Returns the address of the object in stack level 1.
@
\<<
"D9D20" @ Begin ; 02D9D
"E1632" + @ \<< ; 2361E
"9C2A2" + @ 1 ; 2A2C9
"6C7D1" + @ GET ; 1D7C6
"E4A20510000000000000000000" + ;
@ # 0h ;
"CB2A1" + @ NEWOB ; 1A2BC
"CCD20" + @ In-line code ; 02DCC
"B2000" + @ Code length = 43 ; 0002B
"174" + @ D1=D1+ 5 ; Point to LVL2
"AF0" + @ A=0 W ; Clear A
"143" + @ A=DAT1 A ; Copy (LVL2) to A
"1C4" + @ D1=D1- 5 ; Point back to LVL1
"147" + @ C=DAT1 A ; C = LVL1
"137" + @ CD1EX ; Swap C and D1
"179" + @ D1=D1+ 10 ; Skip prolog and length
"159F" + @ DAT1=A 16 ; Copy (LVL2) into LVL1 int
"137" + @ CD1EX ; Restore D1
"142" + @ A=DAT0 A ; End
"164" + @ D0=D0+ 5 ; of
"808C" + @ PC=(A) ; Routine
"DBBF1" + @ SWAP ; 1FBBD
"8DBF1" + @ DROP ; 1FBD8
"93632" + @ \>> ; 23639
"B2130" + @ End ; 0312B
STR\->OBJ
'ADDR' STO
\>>